import { Column, Entity, Index } from "typeorm";
import { DeletedEntity } from "./base/deleted.entity";

@Index("sys_dict_type_code_not_deleted_ukey", ["code"], { unique: true })
@Index("sys_dict_type_pkey", ["id"], { unique: true })
@Entity("sys_dict_type", { schema: "public" })
export class SysDictType extends DeletedEntity {
    @Column("bigint", { primary: true, name: "id" })
    id!: string;

    @Column("character varying", { name: "code", length: 64 })
    code!: string;

    @Column("character varying", { name: "name", length: 128 })
    name!: string;

    @Column("character varying", { name: "remark", nullable: true, length: 256 })
    remark!: string | null;
}
